<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateUserProfileVerifyLogTable extends Migration
{
    public function up(): void
    {
        Schema::create('user_profile_verify_log', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('user_id')->default(0)->comment('用户ID');
            $table->string('content', 300)->default('')->comment('内容');
            $table->tinyInteger('content_type')->default(1)->comment('内容类型');
            $table->tinyInteger('status')->default(0)->comment('审核状态');
            $table->timestamps();
            $table->index('user_id', 'user_id');
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('user_profile_verify_log');
    }
}
